import Vue from 'vue'
import Vuex from 'vuex'
let url="https://m.jjcheck.com"
Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		hasLogin: false,
		loginProvider: "",
		openid: null,
		testvuex:false,
        colorIndex: 0,
        colorList: ['#FF0000','#00FF00','#0000FF'],
		url:"",
		shareurl:url+"h5/#/pages/index/index?ident="+uni.getStorageSync('user').ident
	},
	mutations: {
		seturl(state,val){
			this.state.url=val;
			console.log(this.state)
		},
		back(){
			uni.navigateBack({
				delta:1
			})
		}
	},
    getters:{
      
    },
	actions: {
	
	}
})

export default store
